package com.sharedprint.system.agent.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sharedprint.system.agent.mapper.AgeInfoMapper;
import com.sharedprint.system.agent.pojo.AgeInfo;
@Service
public class AgeInfoServiceImpl implements AgeInfoService {
@Autowired
private AgeInfoMapper ageinfoMapper;
	@Override
	public int findCount(Map<String, Object> searchMap) {
		// TODO Auto-generated method stub
		return ageinfoMapper.findCount(searchMap);
	}

	@Override
	public List<Map<String, Object>> findPageList(Map<String, Object> searchMap) {
		// TODO Auto-generated method stub
		return ageinfoMapper.findPageList(searchMap);
	}

	@Override
	public int delete(int AgeInfo_ID) {
		// TODO Auto-generated method stub
		return ageinfoMapper.deleteByPrimaryKey(AgeInfo_ID);
	}

	@Override
	public int updateStatus_logout(String AgeInfo_Code) {
		// TODO Auto-generated method stub
		return ageinfoMapper.updateAgeInfStatus_logOut(AgeInfo_Code);
	}

	@Override
	public int findItsMerchant(String ageInfoCode) {
		// TODO Auto-generated method stub
		return ageinfoMapper.findItsMerchant(ageInfoCode);
	}

	@Override
	public List<Map<String, Object>> findDicsList(Map<String, Object> searchMap) {
		// TODO Auto-generated method stub
		return ageinfoMapper.findDicsList(searchMap);
	}

	@Override
	public int saveInfo(AgeInfo ageInfo) {
		// TODO Auto-generated method stub
		return ageinfoMapper.insert(ageInfo);
	}




}
